package com.freshmarket.fresh.mapper;

import com.freshmarket.fresh.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProductMapper {

    @Select("select proid,name,subimages,title,price,cateid,origin,status,stock from product")
    List<Product> selectList();

    @Select("select count(*) from product")
    int selectCount();
}
